package com.msl.debezium.common;

public enum ResultCodeEnum {

    SUCCESS(200, "request success"),
    FAIL(400,"request fail"),
    UNAUTH(401, "url forbidden"),
    FORBIDDEN(403, "user unauthorized"),
    NOT_FOUND(404, "not found"),
    SERVER_ERROR(500, "server error");


    private final Integer code;
    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

}
